<?php $this->load->view('admins/header'); ?>
<?php $this->load->view('admins/menu'); ?>
<div class="container conter">
    <?php $this->load->view('admins/topic/menu'); ?>
    <div class="body">
        <div class="main">
            <table>
                <tr>
                    <th>ID</th>
                    <th>分类</th>
                    <th>名称</th>
                    <th>修改时间</th>
                    <th>状态</th>
                    <th>排序</th>
                    <th>操作</th>
                </tr>
                <?php foreach($topics as $ti): ?>
                <tr>
                    <td><?php echo $ti['eid']; ?></td>
                    <td><?php echo $ti['name']; ?></td>
                    <td><?php echo $ti['titles']; ?></td>
                    <td><?php echo date('Y-m-d H:i:s', $ti['mdtime']);?></td>
                    <td><?php echo $ti['status']; ?></td>
                    <td><?php echo $ti['order']; ?></td>
                    <td>
                        <?php echo anchor('admins/topic/delete/'.$ti['eid'], '删除'); ?>
                        &nbsp;&nbsp;|&nbsp;&nbsp;<?php echo anchor('admins/topic/edit/'.$ti['eid'], '编辑'); ?>
                    </td>
                </tr>
                <?php endforeach; ?>
            </table>
            <p class="pages"><?php echo $this->pagination->create_links(); ?></p>
        </div>
    </div>
</div>
<?php $this->load->view('admins/footer'); ?>